﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw
{
    public abstract class Decorator : Target
    {
        protected Target target;

        public void SetTarget(Target _target)
        {
            this.target = _target;
        }

        public override void DrawLine(Paper drawPaper, Vector2 oldP, Vector2 curP, PenType penType)
        {
            target.DrawLine(drawPaper, oldP, curP, penType);
        }

        public override void DrawRectangle(Paper drawPaper, Vector2 oldP, Vector2 curP, PenType penType)
        {
            target.DrawRectangle(drawPaper, oldP, curP, penType);
        }

        public override void DrawEclipse(Paper drawPaper, Vector2 oldP, Vector2 curP, PenType penType)
        {
            target.DrawEclipse(drawPaper, oldP, curP, penType);
        }
    }
}
